﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: DeliverLogEntity.cs
// 修改时间：2020-9-8 10:40:02
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：DeliverLog 的实体类.
	/// </summary>
	[Table("DeliverLog")]
	public partial class DeliverLogEntity
	{
		#region Properties
		private int? _deliverID = 0;
		/// <summary>
		/// 发退货记录ID(主键)(自增长)
		/// </summary>
		[Column("DeliverID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? DeliverID
		{
			get {return _deliverID;}
			set {_deliverID = value;}
		}
		
		private int? _orderID = 0;
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column("OrderID",TypeName="int")]
		public int? OrderID
		{
			get {return _orderID;}
			set {_orderID = value;}
		}
		
		private DateTime? _deliverDate = null;
		/// <summary>
		/// 发退货日期
		/// </summary>
		[Column("DeliverDate",TypeName="datetime")]
		public DateTime? DeliverDate
		{
			get {return _deliverDate;}
			set {_deliverDate = value;}
		}
		
		private int? _deliverDirection = 0;
		/// <summary>
		/// 方向  1--发货  2--退货
		/// </summary>
		[Column("DeliverDirection",TypeName="int")]
		public int? DeliverDirection
		{
			get {return _deliverDirection;}
			set {_deliverDirection = value;}
		}
		
		private System.String _handlerName = string.Empty;
		/// <summary>
		/// 经手人
		/// </summary>
		[Column("HandlerName",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String HandlerName
		{
			get {return _handlerName;}
			set {_handlerName = value;}
		}
		
		private int? _courierId = 0;
		/// <summary>
		/// 快递公司ID
		/// </summary>
		[Column("CourierId",TypeName="int")]
		public int? CourierId
		{
			get {return _courierId;}
			set {_courierId = value;}
		}
		
		private System.String _expressNumber = string.Empty;
		/// <summary>
		/// 快递单号
		/// </summary>
		[Column("ExpressNumber",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ExpressNumber
		{
			get {return _expressNumber;}
			set {_expressNumber = value;}
		}
		
		private System.String _inputer = string.Empty;
		/// <summary>
		/// 录入者
		/// </summary>
		[Column("Inputer",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Inputer
		{
			get {return _inputer;}
			set {_inputer = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Remark",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		private System.Boolean _isReceived = false;
		/// <summary>
		/// 是否已签收
		/// </summary>
		[Column("IsReceived",TypeName="bit")]
		public System.Boolean IsReceived
		{
			get {return _isReceived;}
			set {_isReceived = value;}
		}
		
		private DateTime? _receivedDate = null;
		/// <summary>
		/// 签收时间
		/// </summary>
		[Column("ReceivedDate",TypeName="datetime")]
		public DateTime? ReceivedDate
		{
			get {return _receivedDate;}
			set {_receivedDate = value;}
		}
		
		private System.String _memo = string.Empty;
		/// <summary>
		/// 内部记录
		/// </summary>
		[Column("Memo",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Memo
		{
			get {return _memo;}
			set {_memo = value;}
		}
		
		#endregion
	}
}
